.class Lcom/waiqin365/lightapp/kaoqin/o;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/baidu/mapapi/map/BaiduMap$OnMarkerClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/o;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMarkerClick(Lcom/baidu/mapapi/map/Marker;)Z
    .locals 6

    invoke-virtual {p1}, Lcom/baidu/mapapi/map/Marker;->getZIndex()I

    move-result v1

    new-instance v2, Lcom/waiqin365/lightapp/kaoqin/p;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/kaoqin/p;-><init>(Lcom/waiqin365/lightapp/kaoqin/o;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/o;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->h(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Lcom/waiqin365/lightapp/kaoqin/c/ag;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/ag;->x:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/c/ah;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/ah;->b:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/o;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->h(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Lcom/waiqin365/lightapp/kaoqin/c/ag;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/ag;->x:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/c/ah;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/ah;->b:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    new-instance v3, Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/o;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {v3, v0}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    const v0, 0x7f020331

    invoke-virtual {v3, v0}, Landroid/widget/Button;->setBackgroundResource(I)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/o;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    const v5, 0x7f080385

    invoke-virtual {v4, v5}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v4, ":"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/o;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->h(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Lcom/waiqin365/lightapp/kaoqin/c/ag;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/ag;->x:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/c/ah;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/ah;->b:Ljava/lang/String;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {p1}, Lcom/baidu/mapapi/map/Marker;->getPosition()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v0

    new-instance v1, Lcom/baidu/mapapi/map/InfoWindow;

    invoke-static {v3}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromView(Landroid/view/View;)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v3

    const/16 v4, -0x32

    invoke-direct {v1, v3, v0, v4, v2}, Lcom/baidu/mapapi/map/InfoWindow;-><init>(Lcom/baidu/mapapi/map/BitmapDescriptor;Lcom/baidu/mapapi/model/LatLng;ILcom/baidu/mapapi/map/InfoWindow$OnInfoWindowClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/o;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;->p(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/BaiduMap;->showInfoWindow(Lcom/baidu/mapapi/map/InfoWindow;)V

    :cond_0
    const/4 v0, 0x1

    return v0
.end method
